import request from '@/utils/request'

// 查询旅游类型信息列表
export function listType2(query) {
  return request({
    url: '/system/tourType/list',
    method: 'get',
    params: query
  })
}

// 查询旅游类型信息详细
export function getType(id) {
  return request({
    url: "/system/tourType/" + id,
    method: "get",
  });
}

// 新增旅游类型信息
export function addType(data) {
  return request({
    url: "/system/tourType",
    method: "post",
    data: data,
  });
}

// 修改旅游类型信息
export function updateType(data) {
  return request({
    url: "/system/tourType",
    method: "put",
    data: data,
  });
}

// 删除旅游类型信息
export function delType(id) {
  return request({
    url: "/system/tourType/" + id,
    method: "delete",
  });
}
